package com.zlc.common.core.process.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.zlc.common.common.service.BaseServiceImpl;
import com.zlc.common.core.process.model.entity.StoneInterfaceClass;
import com.zlc.common.core.process.mapper.StoneInterfaceClassMapper;
import com.zlc.common.core.process.model.entity.StoneInterfaceConfig;
import com.zlc.common.core.process.model.vo.StoneInterfaceClassVo;
import com.zlc.common.core.process.service.StoneInterfaceClassService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author  zl
 * @date 2023-10-17 
 */
@Service
@Transactional(rollbackFor = Exception.class)
public class StoneInterfaceClassServiceImpl extends BaseServiceImpl<StoneInterfaceClassMapper, StoneInterfaceClass, StoneInterfaceClassVo> implements StoneInterfaceClassService{

    @Override
    public StoneInterfaceClassVo getByClassId(String classId) {
        LambdaQueryWrapper<StoneInterfaceClass> wrapper = wrapper()
                .eq(StoneInterfaceClass::getClassId, classId);
        return queryOne(wrapper);
    }
}
